package ace.module.mail.address.api.model.input.mailaddress;

import ace.cmp.core.model.PageDto;
import ace.module.mail.address.api.model.input.MadAppOutInfoInput;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * .
 *
 * @author Caspar
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title = "邮寄地址过滤条件")
public class MadMailAddressSearchInput {

  @Valid
  @NotNull
  @Schema(title = "邮寄地址应用外部主键")
  private MadAppOutInfoInput appOutInfo;

  @Valid
  @Schema(title = "过滤条件")
  private MadMailAddressAdminFilterInput filter;

  @NotNull
  private PageDto page = PageDto.of(0,10);
}
